Barrier function measurement